package com.itheima.d4_abstract_template_method.examplePractice;

public class Manager extends People{
    private int year;

    public Manager() {
    }

    public Manager(String name, int age, int year) {
        super(name, age);
        this.year = year;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    @Override
    public void work() {
        System.out.println("我管理公司" + year + "年了");
    }
}
